package com.probox.apiModules.controller.platfom;

import com.probox.common.core.utils.SecurityUtils;
import com.probox.common.core.web.controller.BaseController;
import com.probox.common.core.web.domain.AjaxResult;
import com.probox.common.entity.domain.platfom.PlatformStore;
import com.probox.common.entity.service.platfom.IPlatformStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/platform/openStore")
public class OpenPlatformStoreController extends BaseController {

    @Autowired
    private IPlatformStoreService iPlatformStoreService;


    @GetMapping("/get")
    public AjaxResult get(PlatformStore store){
        store.setPlatformUid(SecurityUtils.getCustomerPlatformUid());
        return    AjaxResult.success("查询成功！",iPlatformStoreService.getVo(store));
    }

}
